package com.fishery.quartz.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author ghost
 * @since 2021-02-21
 */
@ApiModel(value = "任务对象")
@TableName("t_sys_task")
public class Task implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ID_WORKER_STR)
	@ApiModelProperty(value = "id",hidden = true)
	private String id;

	@ApiModelProperty(value = "任务名")
	private String jobName;

	@ApiModelProperty(value = "任务分组")
	private String jobGroup;

	@ApiModelProperty(value = "任务描述")
	private String description;

	@ApiModelProperty(value = "cron表达式")
	private String cronExpression;

	@ApiModelProperty(value = "任务状态", hidden = true)
	@TableField(fill = FieldFill.INSERT)
	private String jobStatus;

	@ApiModelProperty(value = "任务执行时调用哪个接口的uri地址")
	private String requestUri;

	@ApiModelProperty(value = "对应接口的请求方式")
	private String requestMethod;

	@ApiModelProperty(value = "请求体")
	private String requestBody;


	@ApiModelProperty(value = "创建者")
	private String createName;

	@ApiModelProperty(value = "创建时间", hidden = true)
	@TableField(fill = FieldFill.INSERT)
	private Date gmtCreate;

	@ApiModelProperty(value = "更新者", hidden = true)
	@TableField(fill = FieldFill.INSERT)
	private String modifiedName;

	@ApiModelProperty(value = "更新时间", hidden = true)
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date gmtModified;

	@ApiModelProperty(value = "逻辑删除", hidden = true)
	@TableField(fill = FieldFill.INSERT)
	@TableLogic
	private Integer isDeleted;

	public String getRequestBody() {
		return requestBody;
	}

	public void setRequestBody(String requestBody) {
		this.requestBody = requestBody;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCronExpression() {
		return cronExpression;
	}

	public void setCronExpression(String cronExpression) {
		this.cronExpression = cronExpression;
	}

	public String getRequestUri() {
		return requestUri;
	}

	public void setRequestUri(String requestUri) {
		this.requestUri = requestUri;
	}

	public String getRequestMethod() {
		return requestMethod;
	}

	public void setRequestMethod(String requestMethod) {
		this.requestMethod = requestMethod;
	}

	public String getJobStatus() {
		return jobStatus;
	}

	public void setJobStatus(String jobStatus) {
		this.jobStatus = jobStatus;
	}

	public String getJobGroup() {
		return jobGroup;
	}

	public void setJobGroup(String jobGroup) {
		this.jobGroup = jobGroup;
	}


	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

	public String getModifiedName() {
		return modifiedName;
	}

	public void setModifiedName(String modifiedName) {
		this.modifiedName = modifiedName;
	}

	public Integer getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

}
